package com.example.hanqinshan.gifttalk.http;


import com.example.hanqinshan.gifttalk.entity.BaseEntity;
import com.example.hanqinshan.gifttalk.entity.ChannelData;
import com.example.hanqinshan.gifttalk.entity.ChannelItemData;
import com.example.hanqinshan.gifttalk.entity.RankItemData;
import com.example.hanqinshan.gifttalk.entity.Ranks;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by Risky57 on 2017/6/27.
 */

public interface GiftTalkApi {
    String BASE_URL = "http://api.liwushuo.com/";

    @GET("v2/channels/preset?gender=1&generation=2")
    Call<BaseEntity<ChannelData>> getChannels();

    @GET("v2/channels/{id}/items_v2")
    Call<BaseEntity<ChannelItemData>> getChannelItems(@Path("id") int id);

    @GET("v2/ranks_v2/ranks")
    Call<BaseEntity<Ranks>> getRanks();

    @GET("v2/ranks_v3/ranks/{id}")
    Call<BaseEntity<RankItemData>> getRankItems(@Path("id") int id);
}
